package com.culture.config.model.po;

import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain=true)
@NoArgsConstructor
public class JobAddPO {
    @NotBlank(message = "type can't be empty.")
    String type;
    @NotBlank(message = "name can't be empty.")
    String name;	
    @NotBlank(message = "cron can't be empty.")
    String cron;
    @NotBlank(message = "requestUrl can't be empty.")
    String requestUrl;
    @NotBlank(message = "requestMethod can't be empty.")
    String requestMethod;
    String requestParams;
    String alertEmail;
    String description;
    Integer scheduleStrategy;
    @Range(min=0,max=2,message = "must be 0 or 1,2")
    Integer scheduleStatus;
}
